package wnxy.wn44.shopwn.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import wnxy.wn44.shopwn.entity.TShopcart;

import java.util.List;

@Component
public interface TShopcartMapper {
    //查询所有
    List<TShopcart> findAll();

    //动态修改
    int UpdateShopcart(TShopcart sh);

    //添加数据购物车
    int addShopCart(TShopcart sh);

    //动态查询数据
    List<TShopcart> findCondition(TShopcart sh);

    //动态删除
    int deleteByIds(@Param("ids") int... ids);
}